package com.solo.eggsolo.entity;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonFormat;

/**
 * @description collect
 * @author yu
 * @date 2022-06-16
 */
public class Collect implements Serializable {

	private static final long serialVersionUID = 1L;

	/**
	 * 收藏表id
	 */
	private Integer id;

	/**
	 * 收藏时间
	 */
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	private Date createTime;

	/**
	 * 歌曲id
	 */
	private Song song;
	
	private Integer songId;
	/**
	 * 用户id
	 */
	private User user;

    
    private Integer userId;
    



	/**
	 * 位置
	 * 
	 * @return
	 */
	private String position;
	
	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public Song getSong() {
		return song;
	}

	public void setSong(Song song) {
		this.song = song;
	}

	public User getUser() {
		return user;
	}

	public void setUser(User user) {
		this.user = user;
	}

	public Integer getUserId() {
		return userId;
	}

	public void setUserId(Integer userId) {
		this.userId = userId;
	}

	public String getPosition() {
		return position;
	}

	public void setPosition(String position) {
		this.position = position;
	}

	public Integer getSongId() {
		return songId;
	}

	public void setSongId(Integer songId) {
		this.songId = songId;
	}

	@Override
	public String toString() {
		return "Collect [id=" + id + ", createTime=" + createTime + ", song=" + song + ", songId=" + songId + ", user="
				+ user + ", userId=" + userId + ", position=" + position + "]";
	}

	
}
